﻿namespace Anmlz.Model.Entities
{
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;

    public class ImageToSellingAd
    {
        [Key, Column(Order = 0)]
        [Required]
        public int ImageId { get; set; }
        public Image Image { get; set; }

        [Key, Column(Order = 1)]
        [Required]
        public int SellingAdId { get; set; }
        public SellingAd SellingAd { get; set; }
    }
}
